<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>订单打印</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="" rel="stylesheet">
<style type="text/css">
	table{width: 100%; margin-top: 10px}
	td,th{padding: 4px 10px; vertical-align: top;}
	th{text-align: left;}
	th{border: 1px solid #333}
	/*.orderInfo td{border-top: 1px solid #333}*/
	.goodsInfo td{border: 1px solid #333}
</style>

<style   media="print">   
  .Noprint   {   DISPLAY:   none;}   
  .PageNext   {   PAGE-BREAK-AFTER:   always   }   
</style>  
</head>
<body>
    {volist name="list" id='vo' key="n"}
    <table cellspacing="0" class="">
        {if($n==1)}
        <tr class="orderInfo"><td colspan="5">
            <p style="text-align: right; margin: 5px 40px 5px 5px;">
            配送员：{$vo.delivery_name}&nbsp;&nbsp;&nbsp;&nbsp;配送时间：{:date('Y-m-d')}
            </p>
            </td>
        </tr>
        {/if}
    	<tr>
            <th width="30%">订单</th>
    		<th width="30%">地址</th>
    		<th width="20%">名称</th>
    		<th width="5%">数量</th>
    		<th >备注</th>
    	</tr>
    	

    	{volist name="vo['list']" id="v" key='nn'}
    	<tr class="goodsInfo">
  			{if($nn==1)}
            <td rowspan="{:sizeof($vo['list'])}">
                订单号：{$v.order_no}<br/>
                订单金额：{$v.order_money}<br/>
                下单时间：{:date('Y-m-d',strtotime($v['create_time']))}
            </td>
  			<td rowspan="{:sizeof($vo['list'])}">
  				{$v.receiver_name} {$v.receiver_mobile}<br/>
  				{$v.receiver_pcd} <br/>{$v.receiver_address}
  			</td>
  			{/if}
    		<td>{$v.goods_name}【{$v.goods_specval_name}】【{$v.brand_name}】</td>
            <td>{$v['num']}{$v.spec_name}</td>
            <td></td>
    	</tr>
    	{/volist}

        {if($vo['break'] == true || $n==sizeof($list))}
        <tr class="orderInfo"><td colspan="5">
            <p style="text-align: right; margin: 5px 40px 5px 5px;">
            配送员：{$vo.delivery_name}&nbsp;&nbsp;&nbsp;&nbsp;配送时间：{:date('Y-m-d')}
            </p>
            </td>
        </tr>
        {/if}
    </table>
    {if($vo['break'] == true)}
    <div class="PageNext"></div>
    {/if}
    {/volist}
    <script type="text/javascript">
    	window.onload = function(){
    		window.print();
    		setTimeout(function(){
    			window.parent.closeIfram();
    		},1000)
    	}
    </script>
</body>
</html>